package cn.powerone.scm.domain;

import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.powerone.common.annotation.Excel;
import cn.powerone.common.core.domain.BaseEntity;
import cn.powerone.scm.domain.ScmProducts;

/**
 * 项目产品需求对象 scm_project_products
 *
 * @author PowerOne
 * @date 2025-06-27
 */
@Setter
@Getter
public class ScmProjectProducts extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    private Long id;

    /**
     * 项目ID
     */
    @Excel(name = "项目ID")
    private Long projectId;

    /**
     * 产品ID
     */
    @Excel(name = "产品ID")
    private Long productId;

    /**
     * 产品项目中的状态
     */
    @Excel(name = "产品项目中的状态")
    private Long projectProductStatus;

    /**
     * 客户状态
     */
    @Excel(name = "客户状态")
    private Long customerStatus;

    /**
     * 供应商状态
     */
    @Excel(name = "供应商状态")
    private Long supplierStatus;

    /**
     * 采购类型
     */
    @Excel(name = "采购类型")
    private Long purchaseCategory;

    /**
     * 需求类型
     */
    @Excel(name = "需求类型")
    private Long demandType;

    /**
     * 图号
     */
    @Excel(name = "图号")
    private String drawingNumber;

    /**
     * 版本号
     */
    @Excel(name = "版本号")
    private String version;

    /**
     * 内部版本号
     */
    @Excel(name = "内部版本号")
    private Long internalVersion;

    /**
     * 产品名称
     */
    @Excel(name = "产品名称")
    private String productName;

    /** 材质 */
    @Excel(name = "材质")
    private String material;

    /** 阻燃等级 */
    @Excel(name = "阻燃等级")
    private String inflamingRetardingLevel;

    /** 规格 */
    @Excel(name = "规格")
    private String specification;

    /**
     * 型号
     */
    @Excel(name = "型号")
    private String model;

    /**
     * 颜色
     */
    @Excel(name = "颜色")
    private String color;

    /**
     * 图纸构成
     */
    @Excel(name = "图纸构成")
    private String drawingComposition;

    /**
     * 父级ID
     */
    private Long parentId;

    /**
     * 关联的产品信息
     */
    private ScmProducts scmProduct;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("projectId", getProjectId())
                .append("productId", getProductId())
                .append("projectProductStatus", getProjectProductStatus())
                .append("customerStatus", getCustomerStatus())
                .append("supplierStatus", getSupplierStatus())
                .append("purchaseCategory", getPurchaseCategory())
                .append("demandType", getDemandType())
                .append("drawingNumber", getDrawingNumber())
                .append("version", getVersion())
                .append("internalVersion", getInternalVersion())
                .append("productName", getProductName())
                .append("material", getMaterial())
                .append("inflamingRetardingLevel", getInflamingRetardingLevel())
                .append("specification", getSpecification())
                .append("model", getModel())
                .append("color", getColor())
                .append("drawingComposition", getDrawingComposition())
                .append("parentId", getParentId())
                .append("remark", getRemark())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("scmProduct", getScmProduct())
                .toString();
    }
}
